Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <head> <style> #div1 { position: relative; height: 150px; width: 150px; margin: 50px; padding: 10px; border: 1px solid black; -webkit-perspective: 150px; /* Chrome, Safari, Opera */ -webkit-perspective-origin: 10% 10%; /* Chrome, Safari, Opera */ perspective: 150px; perspective-origin: 10% 10%; } #div2 { padding: 50px; position: absolute; border: 1px solid black; background-color: red; -webkit-transform: rotateX(45deg); /* Chrome, Safari, Opera */ transform: rotateX(45deg); } </style> </head> <body> <div id="div1"> <div id="div2">HELLO</div> </div> </body> <!-- Mirrored from www.w3schools.com/cssref/tryit.asp?filename=trycss3_perspective-origin1 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:53:11 GMT --> </html>
Result:
Try it Yourself - © w3schools.com